package com.app.model.supermarket;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Description:评论表
 * @Date: 2022/10/15 15:51
 */
@Data
@TableName("tb_comment")
public class CommentModel {

    @TableId(value = "id", type = IdType.AUTO)
    private int id;

    @ApiModelProperty(value = "评论人头像")
    @TableField("faceUrl")
    private  String faceUrl;

    private Integer mid;

    @ApiModelProperty(value = "评论人姓名")
    private String name;

    @ApiModelProperty(value = "星级")
    private Integer star;

    @ApiModelProperty(value = "评论内容")
    private String content;

    @ApiModelProperty(value = "评论时间")
    private String crtTime;

}
